import java.util.Arrays;
import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (sc.hasNext()){
            String str=sc.nextLine();
            char[] arr=str.toCharArray();
            for (int i = 0; i < arr.length; i++) {
                if (arr[i]==' '){
                    continue;
                }
                if (arr[i]<'F'){
                    arr[i]=(char)(arr[i]+21);
                }
                else{
                    arr[i]=(char)(arr[i]-5);
                }

            }
            String s=new String(arr);
            System.out.println(s);
        }
    }
}
